Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/pages/software/octave/[name].tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Alert, Layout } from "antd";67import { SoftwareEnvNames } from "@cocalc/util/consts/software-envs";8import Footer from "components/landing/footer";9import Head from "components/landing/head";10import Header from "components/landing/header";11import Image from "components/landing/image";12import SoftwareLibraries from "components/landing/software-libraries";13import { Paragraph, Title } from "components/misc";14import A from "components/misc/A";15import { Customize, CustomizeType } from "lib/customize";16import { ExecutableDescription } from "lib/landing/render-envs";17import { withCustomizedAndSoftwareSpec } from "lib/landing/software-specs";18import {19ComputeComponents,20ComputeInventory,21SoftwareSpec,22} from "lib/landing/types";23import { STYLE_PAGE } from "..";24import screenshot from "/public/features/cocalc-octave-jupyter-20200511.png";2526interface Props {27name: SoftwareEnvNames;28customize: CustomizeType;29spec: SoftwareSpec["octave"];30inventory: ComputeInventory["octave"];31components: ComputeComponents["octave"];32execInfo?: { [key: string]: string };33timestamp: string;34}35export default function Octave(props: Props) {36const { name, customize, spec, inventory, components, execInfo, timestamp } =37props;3839function renderBox() {40return (41<Alert42style={{ margin: "15px 0" }}43message="Learn More"44description={45<span style={{ fontSize: "10pt" }}>46Learn more about{" "}47<strong>48<A href="/features/octave">49GNU Octave related functionality in CoCalc50</A>51</strong>52.53</span>54}55type="info"56showIcon57/>58);59}6061function renderInfo() {62return (63<>64<div style={{ width: "50%", float: "right", padding: "0 0 15px 15px" }}>65<Image src={screenshot} alt="Using Octave in a Jupyter notebook" />66</div>67<Paragraph>68This table lists pre-installed{" "}69<A href="https://www.gnu.org/software/octave/">GNU Octave</A> packages70that are immediately available in every CoCalc project running on the71default "Ubuntu {name}" image, along with their respective version72numbers.73</Paragraph>74</>75);76}7778return (79<Customize value={customize}>80<Head title="Octave Packages in CoCalc" />81<Layout>82<Header page="software" subPage="octave" softwareEnv={name} />83<Layout.Content84style={{85backgroundColor: "white",86}}87>88<div style={STYLE_PAGE}>89<Title level={1} style={{ textAlign: "center" }}>90GNU Octave Scientific Programming Packages (Ubuntu {name})91</Title>92{renderInfo()}93{renderBox()}94<ExecutableDescription spec={spec} execInfo={execInfo} />95<SoftwareLibraries96spec={spec}97inventory={inventory}98components={components}99libWidthPct={60}100timestamp={timestamp}101/>102</div>103<Footer />104</Layout.Content>105</Layout>106</Customize>107);108}109110export async function getServerSideProps(context) {111return await withCustomizedAndSoftwareSpec(context, "octave");112}113114115